<!DOCTYPE html>
<html>
<head>
    <title>{{ titleName }}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    {% comment %} <link rel="stylesheet" type="text/css" href="{{path}}static\css\main.css"/>
    <script type="text/javascript" src="{{ path }}/js/jquery.min.js"></script>{% endcomment %}
</head>
<body>
<form action="/querystring/" method="get">
    {% csrf_token %}
    <input type="text" name="q">
    <input type="submit" value="Search">
</form>

<p>You searched for:<b>{{ query }}</b></p>

<div>{{ info }}</div>

{% if books %}
    <p>Found {{ books|length }} book {{ books|pluralize }}</p>
    <ul>
        {% for book in books %}
            <li>{{ book.title }}</li>
        {% endfor %}
    </ul>
{% else %}
    <p>Not found</p>
{% endif %}

{% if error %}
    <ul>
        {% for err in error %}
            <li style="color: #ff0000;">{{ err }}</li>
        {% endfor %}
    </ul>
{% endif %}

</body>
</html>